<?php
namespace Home\Controller;
use Think\Controller;
class FrontController extends Controller {
    public function index(){
    	$prodect_catalog = M("prodect_catalog"); // 实例化User对象
    	$prodect=M('prodect');
		$catalog=$prodect_catalog->where('parent_id=0')->select();
		$prodects=$prodect->where('hot=1')->limit(4)->select();
		$news=M('article')->where('type=1')->limit(5)->select();
		$notices=M('article')->where('type=0')->limit(5)->select();
		$this->assign('prodects',$prodects);
		$this->assign('catalog',$catalog);
		$this->assign('news',$news);
		$this->assign('notices',$notices); 
       $this->display();
	}
	 
}